From e299a72a496fe2642434f945bc25cdd62380af12 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 12 Sep 2007 18:00:30 +0000 Subject: [PATCH] Use the "document-open-recent" icon for the the Recently Used shortcut in 2007-09-12 Emmanuele Bassi * gtk/gtkfilechooserdefault.c (render_recent_icon): Use the "document-open-recent" icon for the the Recently Used shortcut in the file chooser. (#306445) * gtk/Makefile.am: * gtk/stock-icons/16/document-open-recent.png: * gtk/stock-icons/16/document-open-recent.svg: * gtk/stock-icons/24/document-open-recent.png: * gtk/stock-icons/24/document-open-recent.svg: Add the "document-open-recent" icon to the builtin theme we provide as a fallback. svn path=/trunk/; revision=18803 --- ChangeLog | 14 + gtk/Makefile.am | 2 + gtk/gtkfilechooserdefault.c | 18 +- gtk/stock-icons/16/document-open-recent.png | Bin 0 -> 892 bytes gtk/stock-icons/16/document-open-recent.svg | 334 ++++++++++++++++++++ gtk/stock-icons/24/document-open-recent.png | Bin 0 -> 1561 bytes gtk/stock-icons/24/document-open-recent.svg | 328 +++++++++++++++++++ 7 files changed, 695 insertions(+), 1 deletion(-) create mode 100644 gtk/stock-icons/16/document-open-recent.png create mode 100644 gtk/stock-icons/16/document-open-recent.svg create mode 100644 gtk/stock-icons/24/document-open-recent.png create mode 100644 gtk/stock-icons/24/document-open-recent.svg diff --git a/ChangeLog b/ChangeLog index f9da226777..0b401d0797 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2007-09-12 Emmanuele Bassi + + * gtk/gtkfilechooserdefault.c (render_recent_icon): Use the + "document-open-recent" icon for the the Recently Used shortcut + in the file chooser. (#306445) + + * gtk/Makefile.am: + * gtk/stock-icons/16/document-open-recent.png: + * gtk/stock-icons/16/document-open-recent.svg: + * gtk/stock-icons/24/document-open-recent.png: + * gtk/stock-icons/24/document-open-recent.svg: Add the + "document-open-recent" icon to the builtin theme we provide + as a fallback. + 2007-09-12 Kristian Rietveld Fixes #426246. diff --git a/gtk/Makefile.am b/gtk/Makefile.am index b60414cecf..75c60eb2e9 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -911,6 +911,7 @@ files: done STOCK_ICONS = \ + stock-icons/16/document-open-recent.png \ stock-icons/16/gtk-about.png \ stock-icons/16/gtk-add.png \ stock-icons/16/gtk-cdrom.png \ @@ -1005,6 +1006,7 @@ STOCK_ICONS = \ stock-icons/20/gtk-no.png \ stock-icons/20/gtk-ok.png \ stock-icons/20/gtk-yes.png \ + stock-icons/24/document-open-recent.png \ stock-icons/24/gtk-about.png \ stock-icons/24/gtk-add.png \ stock-icons/24/gtk-bold.png \ diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 0ba9f7fc91..2c82af0f3f 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1276,7 +1276,23 @@ render_search_icon (GtkFileChooserDefault *impl) static GdkPixbuf * render_recent_icon (GtkFileChooserDefault *impl) { - return gtk_widget_render_icon (GTK_WIDGET (impl), GTK_STOCK_FILE, GTK_ICON_SIZE_MENU, NULL); + GtkIconTheme *theme; + GdkPixbuf *retval; + + if (gtk_widget_has_screen (GTK_WIDGET (impl))) + theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl))); + else + theme = gtk_icon_theme_get_default (); + + retval = gtk_icon_theme_load_icon (theme, "document-open-recent", + impl->icon_size, 0, + NULL); + + /* fallback */ + if (!retval) + retval = gtk_widget_render_icon (GTK_WIDGET (impl), GTK_STOCK_FILE, GTK_ICON_SIZE_MENU, NULL); + + return retval; } diff --git a/gtk/stock-icons/16/document-open-recent.png b/gtk/stock-icons/16/document-open-recent.png new file mode 100644 index 0000000000000000000000000000000000000000..61543990d5dccd2260e3da2e18a7f62faaa29c1c GIT binary patch literal 892 zcmV-?1B3jDP)bBAuvgw$`R$01IyI|vk4B8o? zTP>~(Iwtc?_Ee^z3l34y2T_DE2s&_-TI^W2#jQ|OusXV}b}hD9H@2|+DV?S5cJuGv zoO6#)l~sK5_xydor|%>97x8$U&d$#CxIOM8T<|dGLT8MbjIkSb#Y!|ZG!Dk&ac3=0 z9xr!ycZb{_HE9I=_2K4SzS`O+Kq-Uy$V7f&0duo+g<_$Y<+jr?G&FQ?ouI3?t6uY2 zGsa7c{)f0rN_GJXb0Jc95HHsqh9f2NnLKVz-4v-*YSn^xaro?TR#_9c_39P0UJvYP z?ZNX~j)PJPn_Kww+)*41pFpu#gsQsW^?Df>!aslO_6UGo3IN2qVx4m5t!H0r>xHp# z11KdJ{{0kYGUM30<1MI)3jx0i+e14rJ3oz`4Gl^PPc`E= z^At9z&tWci6^Z@#K?nf>LBL;w3l~RV=rwquu?bU?e*~6SR*osL(=O>C3Aa)ULL~$^ z2ne{~==**P0D_UD7Lq?+LL?Fa=T!)UL)Udw%GPd0Q@nU*-{;Uh8<8rFLP#5b@p+u+ z`40D%W-##c7kK}Jeng{DNGSmTnyP^@in3+>|gHj4Y7);Z|g9l4+gmaAnK#dy8GRyz^yhyrqpN{k63G_z?5oz29 zN-4I5wxK=Rj^NWlFiJ5na2CH_y|!8|l=}Z!;qJCQlYQ@X@YrdW{4+l;E!&b6t0FC{ zBCEVAg%DB*AbHls`T_w13Zt;>Dwda5k-ncV zRLYesm!e~OVq*Ol9)mVDxAZ8Aa>S7$EFI{Cz@(Jj;G8F>uTKmDaQ>tB|M(kx(_YiC SHSvc40000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Lapo Calamandrei + + + + GTK Recent + + + recent + clock + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gtk/stock-icons/24/document-open-recent.png b/gtk/stock-icons/24/document-open-recent.png new file mode 100644 index 0000000000000000000000000000000000000000..5edf531e3c5f16b1eb200363d668b84df93f402a GIT binary patch literal 1561 zcmV+!2Il#RP)0nS}vtkr95lIUqSO@M(S6ljW>HEul zzxSN8KWIBhjBbDUOMd6C^L#$fdA`3V2fpMIU-Uv#Q`6n5L$)ZY`hCkxW+#)TS5cHj zsmO85v`!}DR!3)NXaD~#XlZ${SaW(_5K`2Xmz6oz=C9Foj~i802?c}9&n+-Kd?PV9 zI25-n>wPmB{dq^nse%7V(A?axO>;UrYig_Y^>?jT&VSHHfB#j+0~3ToLA+jr?95CG zi}EQcDPVB$Q}eptA2t(K)A8dcdOlas^uwK7T`v7}OG~pcJUq(l9Ve;Z{s5I#73jM2 z)(Tq?3P&lEH@HRU?p>PHPfc+mHb|24*C zA6iP1s2Qd*=ezv4;t*0wEXyJmkFpS4ARGzP+WI1Eao;y<*WInCnt~MY%&CWonn4WJhm;Dcs^QVSEG*8^+*r@a6J2;b zI)w#=#wP;}RZ9v7Lso0iEL?cn8xCI9Yha(tkDs6c-nB&pn&)`#+(epkU?B_Vn}+mcGWNxHQzriT4llv&}D2mR-AY34J~vs;VLcxZN(w%QsM2RS7~M5G0Zb z-t6vXRf?C<(Llr!_N#Y{>6PAIf6`2z34ClPO9%JT*7_!zs-Y;$A8Fru+N=a?7zP56 zQsIdwpCUaYmBFDKNz=5>Tlw!>Ck9&W^(dZLxThV z02Y9GAa=Vz0A3&kNJ-DkT%VJd|D?mIZOF@6t!8GVDK3`_RaJ<`5`-fWCZ?v%@xW9v z5l?(HHZt_|^u)x+OYj9?5wJh&kESh2bUSy91-c9|GZ}UH}re@A~sfED4ueT^bAvNG^ev+x`O9ms9@%A17Xkv7QaG00000 LNkvXXu0mjf@#Ffp literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/document-open-recent.svg b/gtk/stock-icons/24/document-open-recent.svg new file mode 100644 index 0000000000..f1cf8bcda4 --- /dev/null +++ b/gtk/stock-icons/24/document-open-recent.svg @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Lapo Calamandrei + + + + GTK Recent + + + recent + clock + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.30.2